/**
 * Created by Administrator on 2017/4/1.
 */
import java.net.URL;
import java.io.*;

public class Download3 {
    public static void main(String[] args) throws Exception{
        URL[] urls = {
                new URL("http://openhome.cc/Gossip/Encoding/"),
                new URL("http://openhome.cc/Gossip/Scala/"),
                new URL("http://openhome.cc/Gossip/JavaScript/"),
                new URL("http://openhome.cc/Gossip/Python/")
        };

        String[] fileNames = {
                "Encoding.html",
                "Scala.html",
                "JavaScript.html",
                "Python.html"
        };

        new pages(urls, fileNames, new ThreadPerTaskExecutor()).download();
    }
}
